﻿using OA.Core;
using OA.Model.MyAttribute;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
//using System.Web.DynamicData;

namespace OA.Model
{
    [Table("Notes")]
    public class Note : BaseInfo
    {
        public int Status { get; set; }

        [Tag(TagEnum.Select, "", "", "")]
        [MaxLength(10)]
       // [Index("EmpID", order: 1)]
        public string EmpID { get; set; }

        /// <summary>
        /// 内容
        /// </summary>        
        [MaxLength(200)]
        [DisplayName("内容")]
        [Tag(TagEnum.TextArea, "required", "内容", 3, 1000)]
        public string Content { get; set; }

        /// <summary>
        /// 提醒日期
        /// </summary>
        [DisplayName("提醒日期")]
        [Tag(TagEnum.Text, "", "提醒日期", 10,10)]
        public string ReminderDate { get; set; }


        /// <summary>
        /// 连续提醒天数
        /// </summary>
        [NotMapped]
        public int Days { get; set; }



    }

    

}
